<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>公共配置管理</title>
    <!-- 引入公用部分 -->
    <script th:replace="common/head::static"></script>
</head>
<body>
<!--表格位置-->
<table class="layui-hide" id="commonCodeTable" lay-filter="test"></table>

<script type="text/html" id="toolbarCommonCode">
    <div class="layui-inline" style="float:right;height:29px;" title="新增" lay-event="addData"><i class="layui-icon layui-icon-add-1"></i></div>
    <div class="layui-inline" style="float:right;height:29px;" title="搜索" lay-event="query"><i class="layui-icon layui-icon-search"></i></div>
    <input type="text" id="commonCode" style="width:200px;float:right;height:30px;" placeholder="请输入配置code" autocomplete="off" class="layui-input">
    <input type="text" id="commonText" style="width:200px;float:right;height:30px;" placeholder="请输入配置名称" autocomplete="off" class="layui-input">
</script>

<script type="text/html" id="barCommonCode">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>

<!--编辑弹出框-->
<div class="commonCodeEditDiv">
    <!-- 操作表单 -->
    <form id="commonCodeForm" class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label class="layui-form-label">序号</label>
            <div class="layui-input-block">
                <input type="text" id="cSort" name="sort" autocomplete="off" placeholder="序号"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">Code</label>
            <div class="layui-input-block">
                <input type="text" id="cCode" name="code" autocomplete="off" placeholder="Code"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">父级Code</label>
            <div class="layui-input-block">
                <input type="text" id="cPCode" name="parentCode" autocomplete="off" placeholder="父级Code" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" id="cName" name="name" autocomplete="off" placeholder="名称"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">内容</label>
            <div class="layui-input-block">
                <input type="text" id="cContent" name="content" autocomplete="off" placeholder="内容"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea id="cRemark" name="remark" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <!-- 隐藏域 -->
        <input type="text" id="cId" name="id" hidden="hidden" value="-1"/>
    </form>
</div>

</body>
<link rel="stylesheet" lang="less" scoped type="text/css" th:href="@{mumu/commoncode/commoncode.css(v=${version})}"/>
<script th:src="@{mumu/commoncode/commoncode.js(v=${version})}"></script>
</html>